/* 基础样式重置与全局设置 */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f9f7f5;
    color: #333;
}

/* 头部样式 */
header {
    position: relative;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

header h1 {
    position: relative;
    margin: 0;
    font-size: 2.5rem;
}

header p {
    position: relative; 
    margin-top: 1rem;
}


/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 200px; /* 根据需要调整高度 */
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* 轮播控制按钮 */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.indicator.active {
    background-color: white;
}

/* 标题覆盖层 */
.header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(0, 0, 0, 0.4); /* 半透明背景增强文字可读性 */
    z-index: 5;
}


/* 容器样式 */
.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* 通用区块样式 */
section {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h2 {
    margin-top: 0;
    padding-bottom: 0.5rem;
    color: #6b8e9e;
    border-bottom: 2px solid #e0e0e0;
}

/* 列表样式 */
.article-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-list li {
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid #6b8e9e;
}

.latest-content {
    padding: 1.5rem;
    background-color: #f0f7f4;
    border-radius: 6px;
}

